import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/* 
 * http://imss-www.upmf-grenoble.fr/prevert/Prog/
 */

public class TestStatic {
	
	static {
		int a = 43;
		int f = 23;
		
		class CD {
			
		}
	}
	
	static int df = 23;
	

	private static class TestInnerClassStatic {

	}

	private class TestInnerClass {
 
	}

	public static void main(String[] args) {
		TestStatic ts = new TestStatic();
		// TestStatic.TestInnerClassStatic tics = new
		// TestStatic.TestInnerClassStatic();
		// TestStatic.TestInnerClass tic = ts.new TestInnerClass();

		ts.meth();
		ts.testMeth();
		ts.methClass(14);
	}

	protected void meth() {
		System.out.println("out");
	}
	
	public void methClass(final int c) {
		class A {
			int val = 0;
			
			public String print() {
				return "crazy" + " " + c;
			}
		}
		
		class B extends A {
			
		}
		
		A a = new A();
		String s = a.print();
		System.out.println(s);
		a.val = 4;
	}

	private static TestStatic c = new TestStatic() {
		protected void meth() {
			System.out.println("in");
		}
	};
	
	private ActionListener al = new ActionListener() {
		
		@Override
		public void actionPerformed(ActionEvent e) {
			// TODO Auto-generated method stub
			
		}
	};

	public void testMeth() {
		c.meth();
	}
}
